home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global sndname, seclick, sewin, selose, sedraw
- sound stop 1
- cursor(4)
- set sndname to "@::SOUND:S51.AIF"
- set seclick to "SE01"
- set sewin to "SEWIN"
- set selose to "SELOSE"
- set sedraw to "SEDRAW"
- end
-
- on pushbutton
- set ch to clickOn()
- set cname1 to item 1 of the name of cast the castNum of sprite ch
- set cname2 to item 2 of the name of cast the castNum of sprite ch
- repeat while the stillDown
- if rollOver(ch) then
- set the castNum of sprite ch to the number of cast (cname1 & "," & "ON")
- else
- set the castNum of sprite ch to the number of cast (cname1 & "," & cname2)
- end if
- updateStage()
- end repeat
- if rollOver(ch) then
- set the castNum of sprite ch to the number of cast (cname1 & "," & "ON")
- set ret to 1
- else
- set the castNum of sprite ch to the number of cast (cname1 & "," & cname2)
- set ret to 0
- end if
- updateStage()
- return ret
- end
-
- on blinkbutton
- global splist
- repeat with i in splist
- if the type of sprite i <> 0 then
- set cname1 to item 1 of the name of cast the castNum of sprite i
- set cname2 to value(item 2 of the name of cast the castNum of sprite i)
- if cname2 = 2 then
- set cname2 to 1
- else
- set cname2 to cname2 + 1
- end if
- set the castNum of sprite i to the number of cast (cname1 & "," & cname2)
- end if
- end repeat
- end
-
- on exitready
- repeat with i = 7 to 7
- puppetSprite(i, 0)
- end repeat
- end
-
- on exitpon
- repeat with i = 7 to 11
- puppetSprite(i, 0)
- end repeat
- puppetSprite(21, 0)
- end
-